package de.le.mfw.client.main.service;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import de.le.mfw.shared.UserDTO;

@RemoteServiceRelativePath("user")
public interface UserService extends RemoteService {
	public void register(String nick, String email, String password)
			throws Exception;

	public UserDTO login(String nick, String password) throws Exception;

	public void sendNewPassword(String nick) throws Exception;

	public void changeEmail(UserDTO user, String newEmail) throws Exception;

	public void changePassword(UserDTO user, String newPassword)
			throws Exception;
}
